clear all

use Ma_LF.dta

****************
** Tab A1
****************

** Variables: farm and director features
sum est_yr est_inv ///
mng_male mng_age mng_edu mng_vil mng_fyr mng_nfyr  ///
if lf_on == 1 & (yr==2016|lf_id==44) & pss==1

** Wage rate
sum mng_wgmn mng_wgyr ///
if lf_on == 1 & (yr==2016|lf_id==44)& pss==1 & mng_wgyr>1995 & mng_wgyr!=.

** Land use variables
sum culs if lf_on == 1 & yr==2016 & pss==1
sum culs if lf_on == 1 & yr==2016 & pss==0
sum culs if lf_on == 1 & yr==2015 & pss==1
sum culs if lf_on == 1 & yr==2015 & pss==0

* Crop choice variables
sum grn if lf_on == 1 & (yr==2016|lf_id==44) & pss==1
sum grnif if lf_on == 1 & (yr==2016|lf_id==44) & pss==1

** Farm assets
sum lf_ast if lf_on == 1 & yr==2016 & pss==1
sum lf_ast if lf_on == 1 & yr==2015 & pss==1

** Seasonally rented land
sum ssld_trfyr ssld_s ssld_nm ssld_contg ssld_hh ssld_rent ssld_contr ///
if lf_on == 1 & ssld_s!=0 & pss==1

** Yearly rented land
sum yrld_trfyr yrld_contrenew yrld_s yrld_nm yrld_contg yrld_hh yrld_rent yrld_contr ///
if lf_on == 1 & yrld_s!=0 & pss==1 

****************
** Tab A2
****************
sum crp1_v crp1_lp crp1_ldp crp1_yd crp1_pmg ///
crp1_mechc ///
mech_inv2 inv2 ///
mech_inv inv cv_inv ///
crp1_culs crp1_fd crp1_inpc ///
ld_pltsz grn ///
mng_vil mng_fpre mng_nfpre mng_male mng_age mng_edu ///
mech_v proc_v irrg_v ///
if lf_on==1 & lf_id!=52 & crp1_culs>=10 & crp1_culs!=0 & crp1_sl!=0